package com.xxxy.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xxxy.utils.JsonSerializerUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author StevenShen
 * @date 2022/3/19 18:43
 */
@Data
public class ReviewedQuestionProgressResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("试题id")
    private Integer questionId;

    @ApiModelProperty("题号")
    private Integer questionIndex;

    @JsonSerialize(using = JsonSerializerUtils.class)
    @ApiModelProperty("阅卷进度")
    private Double reviewedProgress;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "预计完成时间")
    private Date estimatedTime;

}
